package com.tywj.panda.launch.route

import com.tywj.lib.route.RouteNavigation

/**
 * <pre>
 *     author : June Yang
 *     time   : 2020/5/12
 *     desc   : 启动页路由
 *     version: 1.0
 * </pre>
 */

object LaunchRoute {

    //手机号登录
    const val LOGIN_BY_PHONE = "/launch/loginByPhone"

    //一键登录
    const val AUTH_LOGIN = "/launch/AuthLogin"

    const val AUTH_LOGIN_TEST = "/launch/AuthLoginTest"

    const val LoGIN_SERVICE = "/launch/service"

    // 登录页
    const val LOGIN = "/launch/login"

    /**
     * 跳转至登录界面
     */
    fun toLoginByPhone(): RouteNavigation {
        return RouteNavigation(LOGIN_BY_PHONE)
    }

    /**
     * 跳转至一键登录界面
     */
    fun toAuthLogin(): RouteNavigation {
        return RouteNavigation(AUTH_LOGIN)
    }

    /**
     * 跳转至一键登录界面
     */
    fun toAuthLoginTest():RouteNavigation {
        return RouteNavigation(AUTH_LOGIN_TEST)
    }

    fun toLogin(): RouteNavigation {
        return RouteNavigation(LOGIN)
    }
}